package com.zr.action;

import java.io.IOException;
import java.io.PrintWriter;

import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.alibaba.fastjson.JSON;
import com.zr.modelImpl.RmodelImpl;

@WebServlet("/abase")
public class abaseAction extends BaseAction {

	public void getall(HttpServletRequest request, HttpServletResponse response)  {
		RmodelImpl m=new RmodelImpl();
		int [] count=m.base();
		PrintWriter o=null;
		try {
			o = response.getWriter();
		} catch (IOException e) {
			e.printStackTrace();
		}
		o.write(JSON.toJSONString(count));
		o.close();
	}

}
